package demo.web;

import demo.dao.impl.UserMapperImpl;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class UserDeleteServlet extends HttpServlet {
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        UserMapperImpl user=new UserMapperImpl();
        response.getWriter().print(user.deleteUser(Integer.parseInt(request.getParameter("id"))));
    }
}
